package com.alliky.user.ui.activity;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;

import com.alliky.core.base.BaseActivity;
import com.alliky.core.widget.TitleBar;
import com.alliky.user.R;
import com.alliky.user.R2;
import com.alliky.user.mvp.contract.SettingContract;
import com.alliky.user.mvp.presenter.SettingPresenter;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SettingBaseActivity extends BaseActivity<SettingPresenter> implements SettingContract.View {

    @BindView(R2.id.titleBar)
    TitleBar titleBar;
    @BindView(R2.id.tv_person_hint)
    TextView tvPersonHint;
    @BindView(R2.id.arrow_person)
    ImageView arrowPerson;
    @BindView(R2.id.cl_person)
    ConstraintLayout clPerson;
    @BindView(R2.id.tv_account_security_hint)
    TextView tvAccountSecurityHint;
    @BindView(R2.id.cl_account_security)
    ConstraintLayout clAccountSecurity;
    @BindView(R2.id.tv_feedback_hint)
    TextView tvFeedbackHint;
    @BindView(R2.id.cl_feedback)
    ConstraintLayout clFeedback;
    @BindView(R2.id.tv_clear_cache_hint)
    TextView tvClearCacheHint;
    @BindView(R2.id.cl_clear_cache)
    ConstraintLayout clClearCache;
    @BindView(R2.id.tv_about_hint)
    TextView tvAboutHint;
    @BindView(R2.id.cl_about)
    ConstraintLayout clAbout;
    @BindView(R2.id.tv_logout_hint)
    TextView tvLogoutHint;
    @BindView(R2.id.cl_logout)
    ConstraintLayout clLogout;
    @BindView(R2.id.tv_version_hint)
    TextView tvVersionHint;
    @BindView(R2.id.arrow_version)
    ImageView arrowVersion;
    @BindView(R2.id.cl_version)
    ConstraintLayout clVersion;

    @Override
    protected SettingPresenter createPresenter() {
        return new SettingPresenter(this);
    }

    @Override
    public Object setLayout() {
        return R.layout.activity_setting;
    }

    @Override
    public void onInitView(@Nullable Bundle savedInstanceState) {
        titleBar.setLeftFinish(this);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}